/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bayu.services.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Bayu
 */
@Entity
@Table(name = "odc")
@NamedQueries({@NamedQuery(name = "Odc.findAll", query = "SELECT o FROM Odc o"), @NamedQuery(name = "Odc.findById", query = "SELECT o FROM Odc o WHERE o.id = :id"), @NamedQuery(name = "Odc.findByDate", query = "SELECT o FROM Odc o WHERE o.date = :date"), @NamedQuery(name = "Odc.findByPlan4w", query = "SELECT o FROM Odc o WHERE o.plan4w = :plan4w"), @NamedQuery(name = "Odc.findByPlan2w", query = "SELECT o FROM Odc o WHERE o.plan2w = :plan2w"), @NamedQuery(name = "Odc.findByPlanip", query = "SELECT o FROM Odc o WHERE o.planip = :planip"), @NamedQuery(name = "Odc.findByPlanexport", query = "SELECT o FROM Odc o WHERE o.planexport = :planexport"), @NamedQuery(name = "Odc.findByPlanpf", query = "SELECT o FROM Odc o WHERE o.planpf = :planpf"), @NamedQuery(name = "Odc.findByAct4w", query = "SELECT o FROM Odc o WHERE o.act4w = :act4w"), @NamedQuery(name = "Odc.findByAct2w", query = "SELECT o FROM Odc o WHERE o.act2w = :act2w"), @NamedQuery(name = "Odc.findByActip", query = "SELECT o FROM Odc o WHERE o.actip = :actip"), @NamedQuery(name = "Odc.findByActexport", query = "SELECT o FROM Odc o WHERE o.actexport = :actexport"), @NamedQuery(name = "Odc.findByActpf", query = "SELECT o FROM Odc o WHERE o.actpf = :actpf")})
public class Odc implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Basic()
    @Column(name = "date")
    @Temporal(TemporalType.DATE)
    private Date date;
    @Basic(optional = false)
    @Column(name = "plan4w")
    private double plan4w;
    @Basic(optional = false)
    @Column(name = "plan2w")
    private double plan2w;
    @Basic(optional = false)
    @Column(name = "planip")
    private double planip;
    @Basic(optional = false)
    @Column(name = "planexport")
    private double planexport;
    @Basic(optional = false)
    @Column(name = "planpf")
    private double planpf;
    @Basic(optional = false)
    @Column(name = "act4w")
    private double act4w;
    @Basic(optional = false)
    @Column(name = "act2w")
    private double act2w;
    @Basic(optional = false)
    @Column(name = "actip")
    private double actip;
    @Basic(optional = false)
    @Column(name = "actexport")
    private double actexport;
    @Basic(optional = false)
    @Column(name = "actpf")
    private double actpf;

    public Odc() {
    }

    public Odc(Long id) {
        this.id = id;
    }

    public Odc(Long id, Date date, double plan4w, double plan2w, double planip, double planexport, double planpf, double act4w, double act2w, double actip, double actexport, double actpf) {
        this.id = id;
        this.date = date;
        this.plan4w = plan4w;
        this.plan2w = plan2w;
        this.planip = planip;
        this.planexport = planexport;
        this.planpf = planpf;
        this.act4w = act4w;
        this.act2w = act2w;
        this.actip = actip;
        this.actexport = actexport;
        this.actpf = actpf;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public double getPlan4w() {
        return plan4w;
    }

    public void setPlan4w(double plan4w) {
        this.plan4w = plan4w;
    }

    public double getPlan2w() {
        return plan2w;
    }

    public void setPlan2w(double plan2w) {
        this.plan2w = plan2w;
    }

    public double getPlanip() {
        return planip;
    }

    public void setPlanip(double planip) {
        this.planip = planip;
    }

    public double getPlanexport() {
        return planexport;
    }

    public void setPlanexport(double planexport) {
        this.planexport = planexport;
    }

    public double getPlanpf() {
        return planpf;
    }

    public void setPlanpf(double planpf) {
        this.planpf = planpf;
    }

    public double getAct4w() {
        return act4w;
    }

    public void setAct4w(double act4w) {
        this.act4w = act4w;
    }

    public double getAct2w() {
        return act2w;
    }

    public void setAct2w(double act2w) {
        this.act2w = act2w;
    }

    public double getActip() {
        return actip;
    }

    public void setActip(double actip) {
        this.actip = actip;
    }

    public double getActexport() {
        return actexport;
    }

    public void setActexport(double actexport) {
        this.actexport = actexport;
    }

    public double getActpf() {
        return actpf;
    }

    public void setActpf(double actpf) {
        this.actpf = actpf;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Odc)) {
            return false;
        }
        Odc other = (Odc) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bayu.services.entity.Odc[id=" + id + "]";
    }

}
